<!-- 单选题 -->

<template>
  <div class="DetailQuestionnaire-MyStatistic-table">
    <div class="half">
      <div v-for="option in obj.optionList" :key="option.id" class="DetailQuestionnaire-MyStatistic-table-row">
        <div class="percent10">{{ option.label }}</div>
        <div class="percent50">
          <ShowImage v-if="!CORE.isEmpty(option.image)" :one="option" :square="30" noLabel noMargin auto />
          <span>{{ option.content }}</span>
        </div>
        <div class="percent20">{{ option.num }}</div>
        <div class="percent20">{{ option.percent }}%</div>
      </div>
    </div>

    <div class="quar full">
      <ChartBar v-bind="obj.numChart" />
    </div>

    <div class="quar full">
      <ChartBar v-bind="obj.percentChart" percent />
    </div>
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import props from '../OurItem/props'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyRadio',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb('statistic', 'statistic_')],

  /**
   * 属性注册 (抽取以便查阅)
   */
  props,
}
</script>
